package cn.com.joycode.nimble.core.utils;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

public class NbDataSerializer extends JsonSerializer<TestNbData.NbData> {

    @Override
    public void serialize(TestNbData.NbData nbData, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
        jsonGenerator.writeObject(nbData.getDataMap());
    }
}
